<template>
  <div>
    <h1 ref="title1">你好</h1>
    <button @click="showLog">展示h1</button>
    <Person ref="ren"/>
  </div>
</template>

<script lang="ts" setup name="App">
import Person from './components/Person.vue'
import {ref} from "vue"
import { log } from 'console';
let title1=ref()
let ren=ref()
function showLog(){
  console.log(title1.value);
  console.log("ren",ren.value);
  
  
}
// export default {
// name: 'App',
// components: {
//   Person  //注册组件
// },
// }
</script>


<style>

</style>